package com.java.zhuiyun.api.sysrole.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.zhuiyun.api.sysrole.entity.Role;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;

import java.util.List;

/**
 * @InterfaceName RoleService
 * @Description TODO
 * @Author xy
 * @Date 2023/8/16 15:46
 **/
public interface IRoleService extends IService<Role> {

    /**
     * @Author xy
     * @Description 全查
     * @Date 2023/8/15 15:34
     * @Return  * @param null
     */
    PageResult RoleList(Role role, PageRequest pageRequest);

    /**
     * @Author xy
     * @Description 添加
     * @Date 2023/8/15 20:08
     * @Return  * @param null
     */
    int RoleAdd(Role role);

    /**
     * @Author xy
     * @Description 修改
     * @Date 2023/8/15 16:22
     * @Return  * @param null
     */
    int RoleUpdate(Role role);

    /**
     * @Author xy
     * @Description 逻辑删除
     * @Date 2023/8/15 16:37
     * @Return  * @param null
     */
    int RoleDelete(Integer id);


    void setRoleMenu(Integer roleId, List<Integer> menuIds);

    List<Integer> getRoleMenu(Integer roleId);
}
